﻿<phone:PhoneApplicationPage
    x:Class="WP7Square.Error"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">

    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="150"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--This is the name of the application and page title-->
        <Grid Grid.Row="0" x:Name="TitleGrid">
            <TextBlock x:Name="ListName" Text="Take Cover!" Style="{StaticResource PhoneTextTitleNameStyle}"/>
        </Grid>

        <!--This section is empty. Place new content here Grid.Row="1"-->
        <StackPanel Grid.Row="1" x:Name="ContentGrid">
            <TextBlock Text="We're sorry, but an unexpected error occurred." Foreground="#FF5AA5D6" Style="{StaticResource PhoneTextBodyTextStyle}" />
            <Button Content="Show Details" Margin="20" Click="ShowDetailsButton_Click" />
            <Button Content="Main Menu" Margin="20" Click="Button_Click" />
        </StackPanel>
        <Grid Grid.Row="3" x:Name="DetailsGrid">
            <ScrollViewer Height="Auto" HorizontalScrollBarVisibility="Auto">
                <TextBlock x:Name="DetailsText" Text="" Style="{StaticResource TripleLineListTitleTextStyleSmall}" Visibility="Collapsed" TextWrapping="Wrap"/>
            </ScrollViewer>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>